<?php
/**
 * User.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-05-11 17:31:18
 * @modified    2023-05-11 17:31:18
 *
 */

namespace App\Models\Warehouse;

use App\Models\BaseModel;

class User extends BaseModel
{
    protected $table = 'warehouse_user';
    protected $primaryKey = 'id';
    public $timestamps = false;

    protected $fillable = [
        'warehouse_id',
        'user_id'
    ];

    public function user()
    {
        return $this->belongsTo(\App\Models\UserModel::class);
    }
}